﻿package h.ku.lang.modules.display{	import flash.display.Sprite;		import h.ku.eval.Args;	import h.ku.lang.hkuObject;	public class hkuSprite extends hkuObject	{		public var spriteVal:Sprite 				public function hkuSprite(s:Sprite = null)		{			if(s == null){				s = new Sprite()			}			s.graphics.beginFill(0x0000FF)			s.graphics.drawCircle(0,0,10)			spriteVal = s						this.addAS3Function("pos",function(a:Args):void			{				if(a.arguments[0] != null)				{					spriteVal.x = a.arguments[0]				}				if(a.arguments[1] != null)				{					spriteVal.y = a.arguments[1]				}				a.caller.finishFunctionEval( {x:spriteVal.x,y:spriteVal.y} )			})		}				public override function self():*		{			return spriteVal		}	}}